package com.zds.scm.domain;

import java.io.Serializable;

public class UserInfo implements Serializable {
	private static final long serialVersionUID = -7492277842291720260L;
	
    private String userCode;
    private String userName;
    private String userPwd;
    private String userType;
    private String userNewPwd1;//新密码1
    private String userNewPwd2;//新密码2
    
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPwd() {
		return userPwd;
	}
	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	/**
	 * 转换编码为字符说明:只读属性名:userTypeDesc
	 * @return
	 */
	public String getUserTypeDesc() {
		if ("0".equals(userType)){
			return "管理员";
		}else if ("1".equals(userType)) {
			return "教师";
		}else{
			return "学生";
		}
	}
	public String getUserNewPwd1() {
		return userNewPwd1;
	}
	public void setUserNewPwd1(String userNewPwd1) {
		this.userNewPwd1 = userNewPwd1;
	}
	public String getUserNewPwd2() {
		return userNewPwd2;
	}
	public void setUserNewPwd2(String userNewPwd2) {
		this.userNewPwd2 = userNewPwd2;
	}
}
